import request from '@/utils/request'

// 查询托盘列表
export function listTray(query) {
  return request({
    url: '/bill/tray/list',
    method: 'get',
    params: query
  })
}

// 查询托盘详细
export function getTray(id) {
  return request({
    url: '/bill/tray/' + id,
    method: 'get'
  })
}

// 新增托盘
export function addTray(data) {
  return request({
    url: '/bill/tray',
    method: 'post',
    data: data
  })
}

// 修改托盘
export function updateTray(data) {
  return request({
    url: '/bill/tray',
    method: 'put',
    data: data
  })
}

// 删除托盘
export function delTray(id) {
  return request({
    url: '/bill/tray/' + id,
    method: 'delete'
  })
}
